library(survival)
library(ClinicalTrialSummary)
data(ggas)
# group 0: Chemotherapy only; 1: Chemotherapy plus radiotherapy
<- ggas
dat $time <- dat$time * 365
dat
# 暴露组: Chemotherapy only 对照组:Chemotherapy plus radiotherapy
$therapy <- ifelse(dat$group == 0, 1, 0)
dat
<- coxph(Surv(time, event) ~ therapy, dat)
model_a summary(model_a)
Call:
coxph(formula = Surv(time, event) ~ therapy, data = dat)
n= 90, number of events= 82
coef exp(coef) se(coef) z Pr(>|z|)
therapy -0.1051 0.9002 0.2233 -0.471 0.638
exp(coef) exp(-coef) lower .95 upper .95
therapy 0.9002 1.111 0.5811 1.395
Concordance= 0.562 (se = 0.031 )
Likelihood ratio test= 0.22 on 1 df, p=0.6
Wald test = 0.22 on 1 df, p=0.6
Score (logrank) test = 0.22 on 1 df, p=0.6